package com.ffapp.rainmonitorcustom.bean;

import android.text.TextUtils;

import com.ffapp.rainmonitorcustom.R;

public class MonitorListData extends BasisBean {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * STATUSNAME : 正常
	 * NO : 000000000080
	 * IMG : /pages/MobilePage/images/app/WATER02_on.png
	 * GATHERTIME : 2018-09-27 09:25:17
	 * OFFCOMNO : sm0001
	 * T1_STATUS : 0
	 * FLAG : 02
	 * PROCESSINGSTATUS : 0
	 * NAME : 消防栓(厦门市人民剧场)
	 * POSITION : 步行街
	 * WATERGAGE : 0.53
	 * ADDRESS : 福建省厦门市思明区中华街道厦门市人民剧场中山路步行街
	 * OFFCOMNAME : 厦门市人民剧场
	 */

	private String STATUSNAME;
	private String NO;
	private String IMG;
	private String GATHERTIME;
	private String OFFCOMNO;
	private String T1_STATUS;
	private String FLAG;
	private int PROCESSINGSTATUS;
	private String NAME;
	private String POSITION;
	private double WATERGAGE;
	private String ADDRESS;
	private String OFFCOMNAME;

	private String STATUS;

	public String getSTATUSNAME() {
		return STATUSNAME;
	}

	public int getStatusImgPoint(){
		if(TextUtils.isEmpty(STATUSNAME))return R.drawable.base_circle_grey;


		return  R.drawable.base_circle_grey;
	}

	public void setSTATUSNAME(String STATUSNAME) {
		this.STATUSNAME = STATUSNAME;
	}

	public String getNO() {
		return NO;
	}

	public void setNO(String NO) {
		this.NO = NO;
	}

	public String getIMG() {
		return IMG;
	}

	public void setIMG(String IMG) {
		this.IMG = IMG;
	}

	public String getGATHERTIME() {
		return GATHERTIME;
	}

	public void setGATHERTIME(String GATHERTIME) {
		this.GATHERTIME = GATHERTIME;
	}

	public String getOFFCOMNO() {
		return OFFCOMNO;
	}

	public void setOFFCOMNO(String OFFCOMNO) {
		this.OFFCOMNO = OFFCOMNO;
	}

	public String getT1_STATUS() {
		return T1_STATUS;
	}

	public void setT1_STATUS(String T1_STATUS) {
		this.T1_STATUS = T1_STATUS;
	}

	public String getFLAG() {
		return FLAG;
	}

	public void setFLAG(String FLAG) {
		this.FLAG = FLAG;
	}

	public int getPROCESSINGSTATUS() {
		return PROCESSINGSTATUS;
	}

	public void setPROCESSINGSTATUS(int PROCESSINGSTATUS) {
		this.PROCESSINGSTATUS = PROCESSINGSTATUS;
	}

	public String getNAME() {
		return NAME;
	}

	public void setNAME(String NAME) {
		this.NAME = NAME;
	}

	public String getPOSITION() {
		return POSITION;
	}

	public void setPOSITION(String POSITION) {
		this.POSITION = POSITION;
	}

	public double getWATERGAGE() {
		return WATERGAGE;
	}

	public void setWATERGAGE(double WATERGAGE) {
		this.WATERGAGE = WATERGAGE;
	}

	public String getADDRESS() {
		return ADDRESS;
	}

	public void setADDRESS(String ADDRESS) {
		this.ADDRESS = ADDRESS;
	}

	public String getOFFCOMNAME() {
		return OFFCOMNAME;
	}

	public void setOFFCOMNAME(String OFFCOMNAME) {
		this.OFFCOMNAME = OFFCOMNAME;
	}

	public String getSTATUS() {
		return STATUS;
	}

	public void setSTATUS(String STATUS) {
		this.STATUS = STATUS;
	}

	public String getSTATUSStr() {
		if(TextUtils.isEmpty(STATUS))      return "正常";
		switch (STATUS){
			case "0":
				return "正常";
			case "1":
				return "报警";
			case "2":
				return "离线";
			default:
				return "正常";

		}
	}

	public int getSTATUS_resid() {
		if(TextUtils.isEmpty(STATUS))     return R.drawable.base_circle_green;
		switch (STATUS){
			case "0":
				return R.drawable.base_circle_green;
			case "1":
				return  R.drawable.base_circle_red;
			case "2":
				return  R.drawable.base_circle_yellow;
			default:
				return R.drawable.base_circle_green;

		}
	}
}
